package com.zx.cloud.security.vo;

import org.apache.hadoop.io.Writable;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

import lombok.Data;

/**
 * @author zhaoxuan
 * @date 2021-06-18 16:59
 **/
@Data
public class UserVo implements Writable {

    private String username;
    private String password;

    @Override
    public void write(DataOutput dataOutput) throws IOException {
        dataOutput.writeChars(username);
        dataOutput.writeChars(password);

    }

    @Override
    public void readFields(DataInput dataInput) throws IOException {
        username=dataInput.readUTF();
        password=dataInput.readUTF();
    }
}
